/**
 * 铁架台
 */
Shelf = Widget.extend({
	ctor:function(){
		this._super();
		this.init();
		this.setTag(TAG_ICONSHELF);
	},
	init:function(){
		var shelf = new Button(this, 8, TAG_SHELF, "#shelf1.png", this.callback);
		var shelf_up = new Button(this, 9, TAG_SHELF_UP, "#shelf_up.png", this.callback);
		shelf_up.setPosition(cc.p(0,43));
		var shelf_down = new Button(this, 9, TAG_SHELF_DOWN, "#shelf_down.png", this.callback);
		shelf_down.setPosition(cc.p(0,26));
		
		this.callNext = cc.callFunc(function(){
			gg.flow.next();
		}, this);
		this.callNext.retain();
	},
	absorbBack:function(){

	},
	rotateBody:function(obj){

	},
	callback:function(p){
		switch(p.getTag()){
		case TAG_SPOON_SPOON:

			break;
		}
	},
	actionDone:function(p){
		switch(p.getTag()){
		case TAG_SPOON_SPOON:
			break;
		}
	},
	onExit:function(){
		this._super();
		this.callNext.release();
	}
});